package com.tpyule.tpclass.entity.bean;

/**
 * @author zzz
 * @date 2020/2/21 0021 下午 4:59
 */
public class ResultBean<T> {
    public boolean isSuccess;
    public int code;
    public T result;
    public String msg;

    public ResultBean(){};

    public ResultBean(boolean isSuccess, int code, T result, String msg){
        this.msg=msg;
        this.result=result;
        this.code=code;
        this.isSuccess=isSuccess;
    }


    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

